package com.ExaminStudy.ExtendDemo;

public class Teacher extends Employee {
    String major;
    String rank;
    int salary=200;//奖励
    public void show(){
        super.show();
    }

    public Teacher(String name,int age,int salary){
        super(name,age,salary);
    }
  public void information(int salary){
      System.out.println("奖励"+this.salary);
      System.out.println("基本工资"+super.salary);
      System.out.println("版面费"+salary);
  }
}
